<template>
  <div>
    <h3>欢迎叶鸿运</h3>
    <button @click="show">
      按钮
    </button>
    <img
      src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1602342417286&di=29da2ebd602cf11e7bda4fa8610568b6&imgtype=0&src=http%3A%2F%2Fr.bstatic.com%2Fimages%2Fhotel%2Fmax500%2F969%2F96972840.jpg"
      alt=""
      ref="img"
    />
  </div>
</template>

<script>
export default {
  // data() {
  //   isshow: true
  // },
  methods: {
    show() {
      this.$refs.img.style.display = 'block'
    }
  }
}
</script>

<style>
img {
  display: none;
}
</style>
